package com.cjl.dental_clinic.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cjl.dental_clinic.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 医疗器械信息表(Medicalequipment)实体类
 *
 * @author makejava
 * @since 2024-03-28 10:51:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("medicalequipment")
public class Medicalequipment extends BaseEntity {
    // 器械名称
    @TableField("name")
    private String name;
    // 有效期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("validity_perio")
    private Date validityperio;
    // 消毒日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "clear_time")
    private Date cleartime;
    // 单价
    @TableField("unit_price")
    private BigDecimal unitprice;
    // 使用状态
    @TableField("status")
    private Integer status;
}


